<%@ include file="../jspf/taglibs.jspf"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title><fmt:message key="header.title" /> - <sitemesh:write property='title' /></title>
<link href="<c:url value="/resources/css/style.css" />" type="text/css" rel="stylesheet" />
 <sitemesh:write property='head' /> 
<style>
</style>
</head>

<body>
    <div id="layout-body">
        <%@ include file="/WEB-INF/jspf/header.jspf"%>

        <%--    <fmt:message key="header.userLogged" />: <sec:authentication property="principal.username" /> --%>
        <%--     (<a href="<c:url value="/j_spring_security_logout" />" ><fmt:message key="header.logout" /></a>) --%>

        <ul id="menu">
            <li class="menu"><a href="<c:url value="/drives" />"><fmt:message key="links.drives" /></a></li>
            <li class="menu"><a href="<c:url value="/vehicles" />"><fmt:message key="links.vehicles" /></a></li>
            <li class="menu"><a href="<c:url value="j_spring_security_logout" />"><fmt:message key="links.logout" /></a></li>
        </ul>
        <br />

        <h1>
            <sitemesh:write property='title' />
        </h1>

        <c:if test="${not empty error}">
            <div class="errorblock">
                <fmt:message key="${error}" />
            </div>
        </c:if>

        <c:if test="${not empty message}">
            <div class="messageblock">
                <fmt:message key="${message}" />
            </div>
        </c:if>

        <sitemesh:write property='body' />
    </div>
</body>
</html>